package com.nbwyctf.helper.enums;

/**
 * @author chetaifu
 */
public enum ErrorCode {
    /**
     * 通用错误
     */
    OK(0, "OK"),
    SERVER_ERROR(1, "服务器异常"),
    LOGIN_AUTH_ERROR(2, "登录校验失败"),
    USER_NOT_EXIST(3, "当前用户不存在"),
    FILE_NOT_EXIST(14, "文件不存在"),
    NOT_EXCEL_FILE(15, "文件不是Excel类型"),
    ;

    private final int code;
    private final String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
